Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce PHP 8.4 support #50

Merged
merged 3 commits into from
Oct 24, 2024
Merged

Introduce PHP 8.4 support #50

merged 3 commits into from
Oct 24, 2024

Conversation

k00ni
Copy link
Member

@k00ni k00ni commented Jul 12, 2024

Work in progress, because PHP 8.4 is not even in alpha yet.

@k00ni k00ni added enhancement New feature or request tests labels Jul 12, 2024
@k00ni k00ni self-assigned this Jul 12, 2024
@k00ni k00ni changed the title Tests.yml: added 8.4 as test target Tests.yml: added PHP 8.4 as test target Jul 12, 2024
@k00ni k00ni changed the title Tests.yml: added PHP 8.4 as test target Introduce PHP 8.4 support Jul 12, 2024
@k00ni k00ni marked this pull request as draft July 24, 2024 07:14
Usage of xml_set_object is deprecated in PHP 8.4 in
favor of using xml_set_* functions with string method names.
Because we already do that the xml_set_object call could
be removed without any problems.

Link to the offical deprecation information for PHP 8.4:
https://wiki.php.net/rfc/deprecations_php_8_4#xml_set_object_and_xml_set_handler_with_string_method_names
@@ -94,7 +94,6 @@ protected function initXMLParser()
xml_set_element_handler($parser, [$this, 'startElementHandler'], [$this, 'endElementHandler']);
xml_set_character_data_handler($parser, [$this, 'cdataHandler']);
xml_set_start_namespace_decl_handler($parser, [$this, 'newNamespaceHandler']);
xml_set_object($parser, $this);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for reference: aa98fe9

@k00ni k00ni marked this pull request as ready for review October 24, 2024 12:42
@k00ni k00ni merged commit dfa88cd into master Oct 24, 2024
22 checks passed
@k00ni k00ni deleted the feature/php-8.4-support branch October 24, 2024 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant